package com.itfenghuang.bean;

import java.util.List;

/**
 * 班级实体类
 */
public class Cla {
    private int cid;
    private String cname;
    private String cteacher;
    //对象属性
    private List<Student> stus;

    public Cla(int cid, String cname, String cteacher, List<Student> stus) {
        this.cid = cid;
        this.cname = cname;
        this.cteacher = cteacher;
        this.stus = stus;
    }

    @Override
    public String toString() {
        return "Cla{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", cteacher='" + cteacher + '\'' +
                ", stus=" + stus +
                '}';
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCteacher() {
        return cteacher;
    }

    public void setCteacher(String cteacher) {
        this.cteacher = cteacher;
    }

    public List<Student> getStus() {
        return stus;
    }

    public void setStus(List<Student> stus) {
        this.stus = stus;
    }

    public Cla() {
    }
}
